package com.bsj.power.common.def.dto.room;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description RoomDTO
 * @time 2024/9/3 11:40
 */
@Data
@NoArgsConstructor
public class RoomDTO {

    /**
     * 主键id
     */
    private Long roomId;

    /**
     * 房间号
     */
    @NotBlank(message = "房间号不能为空")
    private String roomNo;

    /**
     * 房间位置点
     */
    @NotBlank(message = "房间位置点不能为空")
    private String roomPoint;

    /**
     * 楼层（几米层）室外0;-9.5m1;0m2;7.5m3;16m4;23m5
     */
    @NotNull(message = "楼层不能为空")
    @Min(value = 0, message = "楼层错误")
    @Max(value = 5, message = "楼层错误")
    private Integer floor;

    /**
     * 机组号 目前只有1-2号机组，室外0
     */
    @NotNull(message = "机组号不能为空")
    @Min(value = 0, message = "机组号错误")
    @Max(value = 2, message = "机组号错误")
    private Integer unitNo;

    /**
     * 备注
     */
    private String remark;

    /**
     * mapId
     */
    private Integer mapId;
}
